#ifndef IP_LIST_H
#define IP_LIST_H

#ifdef __cplusplus
extern "C"{
#endif

int is_ip_in_network(const char * network_list[], const char* ip);
/*
const char * allowed_network_list[] = {
    "192.168.0.*",
    NULL, // must end with this
};
int main(int argc, char * argv[])
{
    int index;

    index = is_ip_in_network(allowed_network_list, "192.168.0.188");
    if(index >= 0)
    {
        printf("index %d, %s\n", index, allowed_network_list[index]);
    }

    return 0;
}
*/

#ifdef __cplusplus
}
#endif
#endif/*IP_LIST_H*/
